main {
    background-color: #262626;
    color: white;
    overflow: hidden;
}

.items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;

    position: relative;

    width: 100%;
    padding: 30px;
}

.items > .item,
.items > .item-placeholder {
    min-width: 200px;
    min-height: 75px;
    margin: 10px;
}

.items > .item {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: 2px solid;
    border-radius: 25px;
    padding: 10px;
    font-size: 1.3rem;
    background-color: #262626;
    cursor: grab;
    transition: opacity 0.3s ease;
    z-index: 2;

    animation: appear 1.2s ease;
}

.items > .item::before {
    content: attr(data-name);
    user-select: none;
}

.items > .item:hover {
    opacity: 0.7;
}

.items > .item.grabbed {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: grabbing;
    z-index: 1;
}

@keyframes appear {
    from {
        border-color: green;
    }
    to {
        border-color: initial;
    }
}